package conf

import wms "ez/apps/wms/document"

func InitIOType() []*wms.IOType {
	mustHave := make([]*wms.IOType, 0)
	//入库类型
	mustHave = append(mustHave, &wms.IOType{Id: 1, Name: "入库", Sort: 1, IsAdd: true, ParentId: 0})
	mustHave = append(mustHave, &wms.IOType{Id: 3, Name: "普通入库", Sort: 10, IsAdd: true, ParentId: 1})
	mustHave = append(mustHave, &wms.IOType{Id: 4, Name: "盘盈", Sort: 20, IsAdd: true, ParentId: 1})
	mustHave = append(mustHave, &wms.IOType{Id: 5, Name: "退库(I)", Sort: 30, IsAdd: true, ParentId: 1})
	mustHave = append(mustHave, &wms.IOType{Id: 6, Name: "入库红冲", Sort: 40, IsAdd: true, ParentId: 1})

	//出库类型
	mustHave = append(mustHave, &wms.IOType{Id: 2, Name: "出库", Sort: 2, IsAdd: false, ParentId: 0})
	mustHave = append(mustHave, &wms.IOType{Id: 7, Name: "普通出库", Sort: 10, IsAdd: false, ParentId: 2})
	mustHave = append(mustHave, &wms.IOType{Id: 8, Name: "盘亏", Sort: 20, IsAdd: false, ParentId: 2})
	mustHave = append(mustHave, &wms.IOType{Id: 9, Name: "退库(O)", Sort: 30, IsAdd: false, ParentId: 2})
	mustHave = append(mustHave, &wms.IOType{Id: 10, Name: "出库红冲", Sort: 40, IsAdd: false, ParentId: 2})

	return mustHave
}
